package com.tang.service.impl;

import com.tang.service.Stock;
import com.tang.service.Order;

/**
 * 购买命令实现
 */
public class BuyStock implements Order {

    private final Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }

}
